package org.van.blog.service.article;

import java.util.List;

import com.github.pagehelper.PageInfo;

import org.van.blog.dto.cond.ContentCond;
import org.van.blog.model.ContentDomain;
import org.van.blog.model.MetaDomain;

public interface ContentService {
    void addArticle(ContentDomain contentDomain);

    ContentDomain getArticleById(Integer cid);

    void updateArticleById(ContentDomain contentDomain);

    PageInfo<ContentDomain> getArticlesByCond(ContentCond contentCond, int page, int limit);

    void deleteArticleById(Integer cid);

    void updateContentByCid(ContentDomain content);

    List<ContentDomain> getArticleByCategory(String category);

    List<ContentDomain> getArticleByTags(MetaDomain tags);
}
